package com.chensheng.service;


import com.chensheng.dao.OrderDetailDAO;
import com.chensheng.model.OrderDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:ChenSheng
 * @Description:
 * @Date: Created in 下午 20:28 2018/5/13 0013
 */
@Service
public class OrderDetailService {

    @Autowired
    private OrderDetailDAO orderDetailDAO;


    public void saveOne(OrderDetail orderDetail) {
        orderDetailDAO.insertOne(orderDetail);
    }

    public List<OrderDetail> findByOrderId(String orderId) {
        return orderDetailDAO.selectByOrderId(orderId);
    }
}
